﻿@using Huirui.Cavan.Domain.MainBoundedContext.PurchaseModule
@model Huirui.Cavan.Presentation.ViewModel.PurchaseModule.IPurchaseOrderViewModel
<div id="selectStockWindowFromPurchaseOrder" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("按订单采购 ")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    <div>
        @using (Html.BeginForm(ActionConst.STOCKSFROMPURCHASEORDER, ControllerConst.STOCK, FormMethod.Post, new { id = "searchStockFromPurchaseOrder" }))
        {
             
            <table class="form_heard">
                <tr>
                    <td class="c100">
                        <label>
                            订单日期:</label>
                    </td>
                    <td class="c160">
                        @Html.TextBoxFor(m => m.SearchParam.StartDate, new { id = "purchOrderDateStart", @class = "Wdate", @type = "text", @onfocus = "WdatePicker({wdate:true,isShowClear:false,readOnly:true,skin:'whyGreen',maxDate:'%y-%M-%d'})" })
                    </td>
                    <td class="c30">
                        <label>
                            至</label>
                    </td>
                    <td class="c160">
                        @Html.TextBoxFor(m => m.SearchParam.EndDate, new { id = "purchOrderDateEnd", @class = "Wdate", @type = "text", @onfocus = "WdatePicker({wdate:true,isShowClear:false,readOnly:true,skin:'whyGreen',maxDate:'%y-%M-%d'})" })
                    </td>
                    <td class="c100">
                        <label>
                            采购订单号:</label>
                    </td>
                    <td class="c164">
                        @Html.TextBoxFor(m => m.SearchParam.ID, new { id = "purchaseOrderCode" })
                    </td>
                    <td class="c100"></td>
                </tr>
                <tr>
                    <td class="c100">
                        <label>
                            供应商:</label>
                    </td>
                    <td class="c160">
                        @Html.TextBoxFor(m => m.SearchParam.SupplierCode)
                    </td>
                    <td colspan="2">
                        <input class="withprompt" type="text" value="显示供应商名称" />
                    </td>
                    <td class="c100">
                        <label>
                            订单状态:</label>
                    </td>
                    <td colspan="2">
                        <table class="form_heard">
                            <tr>
                                <td>
                                    <input type="checkbox" name="stockInStatus" value="@PurchaseIdentifier.StockInStatus.UnIn.GetHashCode()" />
                                </td>
                                <td>@Html.Raw("未入库")
                                </td>
                                <td>
                                    <input type="checkbox" name="stockInStatus" value="@PurchaseIdentifier.StockInStatus.PartIn.GetHashCode()" />
                                </td>
                                <td>@Html.Raw("部分入库")
                                </td>
                                <td>
                                    <input type="checkbox" name="stockInStatus" value="@PurchaseIdentifier.StockInStatus.AllIn.GetHashCode()" />
                                </td>
                                <td>@Html.Raw("已入库")
                                </td>
                                <td>
                                    <input type="checkbox" name="stockInStatus" value="@PurchaseIdentifier.StockInStatus.Closed.GetHashCode()" />
                                </td>
                                <td>@Html.Raw("关闭")
                                </td>
                            </tr>
                        </table>
                        @Html.HiddenFor(m => m.SearchParam.StoskInStatues, new { id = "stockInStatues" })
                    </td>
                </tr>
            </table>
            <input type="submit" value="搜索" />
        }
        <a href="#" id="doSelectStocksFromPurchaseOrder" class="easyui-linkbutton" iconcls="icon-ok" plain="true">确定商品</a>
        <table id="stocksFromPurchaseOrder">
        </table>
    </div>
</div>
